package com.ftg.learn.chapter17;

import com.ftg.learn.chapter17.generic.Learngeneric;
import org.junit.Test;


/**
 * @author KangJx
 * @date 2021/8/5
 */
public class LearngenericTest {

    @Test
    public void test1(){
        //类泛型的基本功能  -- 相当于 实参
        Learngeneric<Double> l = new Learngeneric<>();
        double sum = l.add(23.45,45D);
        System.out.println(sum);
    }

}
